package com.muse.designpatterns.decorator;

public class DecoratorTest {
    public static void main(String[] args) {
        Food jianBing = new JianBing();
        Food egg = new Egg(jianBing);
        Food sausage = new Sausage(egg);
        System.out.println("总金额为"+sausage.cost()+"元");
    }
}
